const Router = require("koa-router");

const router = new Router({ prefix: "/common" });

const { uploadImage, getCaptcha, excelOut, excelIn } = require('../controls/common')

// 上传图片
router.post('/upload', uploadImage)

// 获取图形校验码
router.get('/getcaptcha', getCaptcha)

// excel导出
router.get('/excelOut', excelOut)

// excel 导入
router.post('/excelIn', excelIn)

module.exports = router